-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add token usage to messages #4028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
victordibia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!!
|
@ekzhu with the introduction of
UserWarnings like Field "model_usage" in BaseMessage has conflict with protected namespace "model_".
This happens when i attempt something like I have managed to suppress it with doing the following model_config in However as per https://docs.pydantic.dev/2.1/usage/model_config/#protected-namespaces So, it's important to note a few things:
|
|
@auphof thanks for the catch, we will rename the field. |

Resolves #4017